Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODPart


ChangeKind

The ChangeKind method should change this part's preferred kind.

void ChangeKind (in ODType kind);
kind
The preferred kind to assign to this part.
DISCUSSION
OpenDoc calls this method if the user has chosen a new preferred kind for this part in the Part Info dialog box (for example, a request that a Styled Text part change into an ASCII Text part). Your part must be able to change from the current part kind to any other kind it supports.

After your part's ChangeKind method executes successfully, your part should begin using the specified part kind as its preferred kind and begin manipulating your part's data in the new format. Your part should write the preferred kind into a kODPropPreferredKind property in its storage unit and store its part kinds in order from highest fidelity to lowest.

OVERRIDING
When you subclass ODPart, you must override this method. Your override method must not call its inherited method; that is, your override method must implement this method's functionality completely. Your override method should always be implemented, not just implemented in the case of a part supporting multiple kinds.

SEE ALSO
Table 2-1 on page 89 in OpenDoc Programmer's Guide.
"Consequences of Changing Part Editor or Part Kind" on page 487 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help